package dumu

var successResponse = &baseResponse{
	Code: 0,
	Log:  "success!",
}

var failedResponse = &baseResponse{
	Code: -1,
	Log:  "failed!",
}

type uploadPersonFaceRequest struct {
	Pass         string   `json:"pass"`
	UserId       string   `json:"user_id"`
	ImageContent string   `json:"image_content"`
	ImageType    string   `json:"image_type"`
	UserInfo     userInfo `json:"user_info"`
}

type removePersonFaceRequest struct {
	Pass   string `json:"pass"`
	UserId string `json:"user_id"`
}

type heartbeatRequest struct {
	IP            string `json:"IP,omitempty"`
	WifiIP        string `json:"WIFIIP,omitempty"`
	DeviceCode    string `json:"device_code,omitempty"`
	DeviceComment string `json:"device_comment,omitempty"`
	DeviceId      string `json:"device_id,omitempty"`
	DeviceName    string `json:"device_name,omitempty"`
	DeviceType    int    `json:"device_type,omitempty"`
	SoftwareVer   string `json:"software_version,omitempty"`
	Timestamp     uint64 `json:"timestamp,omitempty"`
	UserNum       int    `json:"user_num,omitempty"`
}

type userInfo struct {
	UserType int    `json:"user_type"`
	Name     string `json:"name"`
}

type baseResponse struct {
	Code int    `json:"code"`
	Log  string `json:"log"`
}

type uploadPersonInfoResponse struct {
	baseResponse
	UserId     string `json:"user_id"`
	DeviceId   string `json:"device_id"`
	CreateTime int    `json:"create_time"`
}
